package com.ice.base.controller;

import com.ice.body.socket.QRSocketServer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 启动加载类
 */
@Component
public class QRLoadController implements ApplicationRunner {

    Logger log = LoggerFactory.getLogger(QRLoadController.class);

    @Resource
    private QRSocketServer qrSocketServer;


    @Override
    public void run(ApplicationArguments args) throws Exception {
       /* try{
            log.info("*** --- 初始化socket 网口监听7001 --- ***");
            qrSocketServer.startServer(7001);

        }catch (Exception e){
            log.error("*** --- 初始化socket 网口监听7001失败 --- ***");
            e.printStackTrace();
        }
*/
    }



}
